package com.ruoyi.monitormanage.controller;

import com.ruoyi.common.core.domain.Parameter;
import com.ruoyi.monitormanage.domain.TestLogResult;
import com.ruoyi.monitormanage.domain.TestLogdetailsResult;
import com.ruoyi.monitormanage.service.TTestLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/testlog")
public class TTestLogController {

    @Autowired
    private TTestLogService tTestLogService;

    @PostMapping("/gettestlogforday")
    public List<TestLogResult> gettestlogforday(@RequestBody Parameter parameter){
        return tTestLogService.gettestlogforday(parameter);
    }

    @PostMapping("/gettestlogdetails")
    public List<TestLogdetailsResult> gettestlogdetails(@RequestBody Parameter parameter){
        return tTestLogService.gettestlogdetails(parameter);
    }


    }
